﻿using DataModels.Enums.Home;
using SqlSugar;
using static DataModels.Enums.GeneralEnum;

namespace DataModels.Entities.HomeService
{
    [SugarTable]
    public class HomeServiceProductGroupActivity
    {
        /// <summary>
        /// 拼团活动UUID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public Guid UUID { get; set; }

        /// <summary>
        /// 商品UUID
        /// </summary>
        public Guid HomeServiceProductUUID { get; set; }

        /// <summary>
        /// 成团人数
        /// </summary>
        public int GroupCount { get; set; } = 2;

        /// <summary>
        /// 最大成团人数
        /// </summary>
        public int MaxGroupCount { get; set; } = 100;

        /// <summary>
        /// 活动状态
        /// </summary>
        public GroupstartendStatus GroupStatus { get; set; } = GroupstartendStatus.waitingStart;

        /// <summary>
        /// 删除标记
        /// </summary>
        public Status IsDeleted { get; set; } = Status.Disable;

        /// <summary>
        /// 拼团结束时间
        /// </summary>
        public DateTime? EndTime { get; set; }
        public DateTime CreateTime { get; set; } = DateTime.Now;
        public Guid CreateUserUUID { get; set; }
        public DateTime UpdateTime { get; set; } = DateTime.Now;
        public Guid UpdateUserUUID { get; set; }
    }
}
